
function parseTime(str){
    var [hour,minutes,seconds] = str.split(":").map(Number);

    var date = new Date();
    date.setHours(hour,minutes,seconds,0)
    return date
}


var date = parseTime("12:04:11");
console.log(date,"date")
